package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

/**
 * 消耗品
 * @author acer
 *
 */
@Entity
@Table(name = "B_Consum")
public class Consum extends AuditableEntity implements Serializable {

    private static final long serialVersionUID = 120212011258131583L;

    @ViewField(header = "货位", width = 100, align = "left")
    private String stack;
    @ViewField(header = "物品编码", width = 150, align = "left")
    private String code;
    @ViewField(header = "物品名称", width = 250, align = "left")
    private String name;
    @ViewField(header = "物品规格", width = 150, align = "left")
    private String spec;
    @ViewField
    private Long smId;
    @ViewField(header = "财务类别大类", width = 150, align = "left")
    private String smName;
    @ViewField
    private Long dmId;
    @ViewField(header = "财务类别小类", width = 150, align = "left")
    private String dmName;
    @ViewField(header = "单位", width = 150, align = "left")
    private String unit;
    @ViewField(header = "包装单位", width = 150, align = "left")
    private String packaging;
    @ViewField(header = "换算因子", width = 150, align = "left")
    private String pre;
    @ViewField(header = "病人计费", width = 150, align = "left")
    private String billing;
    @ViewField(header = "停用", width = 150, align = "left")
    private String stop;
    @ViewField(header = "批次管理", width = 150, align = "left")
    private String batch;
    @ViewField(header = "", width = 150, align = "left")
    private Long vaProId;
    @ViewField(header = "计量属性", width = 150, align = "left")
    private String vaProName;
    @ViewField(header = "财务类别小类", width = 150, align = "left")
    private Long proProId;
    @ViewField(header = "产品属性", width = 150, align = "left")
    private String proProName;
    @ViewField(header = "财务类别小类", width = 150, align = "left")
    private Long useProId;
    @ViewField(header = "使用属性", width = 150, align = "left")
    private String useProName;
    @ViewField(header = "价格控制", width = 150, align = "left")
    private String priceControl;
    @ViewField(header = "生产厂家", width = 150, align = "left")
    private String producer;
    @ViewField(header = "医保编码", width = 150, align = "left")
    private String healthCode;
    @ViewField(header = "医保别名", width = 150, align = "left")
    private String healthName;
    @ViewField(header = "零价", width = 150, align = "left")
    private String price;
    @ViewField(header = "最后进价", width = 150, align = "left")
    private String lastPrice;
    @ViewField(header = "定额", width = 150, align = "left")
    private String quota;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_Consum")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStack() {
        return stack;
    }

    public void setStack(String stack) {
        this.stack = stack;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public Long getSmId() {
        return smId;
    }

    public void setSmId(Long smId) {
        this.smId = smId;
    }

    public String getSmName() {
        return smName;
    }

    public void setSmName(String smName) {
        this.smName = smName;
    }

    public Long getDmId() {
        return dmId;
    }

    public void setDmId(Long dmId) {
        this.dmId = dmId;
    }

    public String getDmName() {
        return dmName;
    }

    public void setDmName(String dmName) {
        this.dmName = dmName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPackaging() {
        return packaging;
    }

    public void setPackaging(String packaging) {
        this.packaging = packaging;
    }

    public String getPre() {
        return pre;
    }

    public void setPre(String pre) {
        this.pre = pre;
    }

    public String getBilling() {
        return billing;
    }

    public void setBilling(String billing) {
        this.billing = billing;
    }

    public String getStop() {
        return stop;
    }

    public void setStop(String stop) {
        this.stop = stop;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public Long getVaProId() {
        return vaProId;
    }

    public void setVaProId(Long vaProId) {
        this.vaProId = vaProId;
    }

    public String getVaProName() {
        return vaProName;
    }

    public void setVaProName(String vaProName) {
        this.vaProName = vaProName;
    }

    public Long getProProId() {
        return proProId;
    }

    public void setProProId(Long proProId) {
        this.proProId = proProId;
    }

    public String getProProName() {
        return proProName;
    }

    public void setProProName(String proProName) {
        this.proProName = proProName;
    }

    public Long getUseProId() {
        return useProId;
    }

    public void setUseProId(Long useProId) {
        this.useProId = useProId;
    }

    public String getUseProName() {
        return useProName;
    }

    public void setUseProName(String useProName) {
        this.useProName = useProName;
    }

    public String getPriceControl() {
        return priceControl;
    }

    public void setPriceControl(String priceControl) {
        this.priceControl = priceControl;
    }

    public String getProducer() {
        return producer;
    }

    public void setProducer(String producer) {
        this.producer = producer;
    }

    public String getHealthCode() {
        return healthCode;
    }

    public void setHealthCode(String healthCode) {
        this.healthCode = healthCode;
    }

    public String getHealthName() {
        return healthName;
    }

    public void setHealthName(String healthName) {
        this.healthName = healthName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(String lastPrice) {
        this.lastPrice = lastPrice;
    }

    public String getQuota() {
        return quota;
    }

    public void setQuota(String quota) {
        this.quota = quota;
    }

}
